package com.iversonx.observer.example_1.v2.listener;

import com.iversonx.observer.example_1.v1.MQService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 *
 **/
@Component
public class MQEventListener implements EventListener {
    @Autowired
    private MQService mqService;
    @Override
    public void doEvent(String msg) {
        mqService.send(msg);
    }
}
